# coding=utf-8
# 全世界最帅的帅哥
from ysgg1_club_comment.modules import db
from ysgg1_club_comment.modules.base_model import BaseModel
from sqlalchemy.dialects.mysql import TINYINT


class AuthRole(BaseModel):
    __tablename__ = 'auth_role'

    role_name = db.Column(db.String(32), comment="权限名称")
    role_key = db.Column(db.String(64), comment="权限的唯一标识")
    status = db.Column(TINYINT, default=0, comment="状态 0启用 1禁止")

    def __repr__(self):
        return f"<AuthRole {self.role_name}>"